package top.libeilin.demo.pojo;

import java.util.Objects;

public class User {
    private Integer user_id;
    private String user_name;
    private String real_name;
    private String password;
    private String email;
    private String phone;
    private String u1;
    private String u2;

    public User() {
    }

    public User(Integer user_id, String user_name, String real_name, String password, String email, String phone, String u1, String u2) {
        this.user_id = user_id;
        this.user_name = user_name;
        this.real_name = real_name;
        this.password = password;
        this.email = email;
        this.phone = phone;
        this.u1 = u1;
        this.u2 = u2;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", real_name='" + real_name + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", u1='" + u1 + '\'' +
                ", u2='" + u2 + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return Objects.equals(user_id, user.user_id) && Objects.equals(user_name, user.user_name) && Objects.equals(real_name, user.real_name) && Objects.equals(password, user.password) && Objects.equals(email, user.email) && Objects.equals(phone, user.phone) && Objects.equals(u1, user.u1) && Objects.equals(u2, user.u2);
    }

    @Override
    public int hashCode() {
        return Objects.hash(user_id, user_name, real_name, password, email, phone, u1, u2);
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getU1() {
        return u1;
    }

    public void setU1(String u1) {
        this.u1 = u1;
    }

    public String getU2() {
        return u2;
    }

    public void setU2(String u2) {
        this.u2 = u2;
    }
}
